const { Base } = require('./base.js')

class CurrencyShopModel extends Base {
  constructor() {
    super()
  }
  /**
   * 城市门店列表
   */
  getShops(data) {
    return this.promiseRequest('/wechat/shop/query/list', data)
  }
  /**
   * 门店商品游戏币列表
   */
  getCurrency(data) {
    return this.promiseRequest('/wechat/product/query/list', data)
  }
  getCurrencyv2(data) {
    return this.promiseRequest('/wechat/product/v2/query/list', data)
  }
  /**
   * 门店商品游戏券列表
   */
  getGamecoupon(data) {
    return this.promiseRequest('/wechat/product/gamecoupon/list', data)
  }
  getGamecouponv2(data) {
    return this.promiseRequest('/wechat/product/v2/gamecoupon/list', data)
  }
  /**
   * 门店商品币券套餐列表
   */
  getGamecouponpackage(data) {
    return this.promiseRequest('/wechat/product/gamecouponpackage/list', data)
  }
  getGamecouponpackagev2(data) {
    return this.promiseRequest('/wechat/product/v2/gamecouponpackage/list', data)
  }
  /**
   * 创建订单
   */
  createOrder(data) {
    return this.promiseRequest('/wechat/order/create', data)
  }
  createOrderv2(data) {
    return this.promiseRequest('/wechat/order/v2/create', data)
  }
  /**
   * 创建支付单
   */
  createPayOrder(data) {
    return this.promiseRequest('/wechat/pay/create', data)
  }
  /**
   * 获取订单价格及优惠价格
   */
  getOrderInfo(data) {
    return this.promiseRequest('/wechat/order/price/query', data)
  }
  getOrderInfov2(data) {
    return this.promiseRequest('/wechat/order/v2/price/query', data)
  }
  getUnloginOrderInfo(data) {
    return this.promiseRequest('/wechat/order/unlogin/price/query', data)
  }
  getUnloginOrderInfov2(data) {
    return this.promiseRequest('/wechat/order/v2/unlogin/price/query', data)
  }
  /**
   * 查询订单可用优惠券列表
   */
  getCouponList(data) {
    return this.promiseRequest('/wechat/coupon/query/available/list', data)
  }
  getCouponListv2(data) {
    return this.promiseRequest('/wechat/order/v2/coupon/list', data)
  }
  /**
   * 根据key获取对应value值
   */
  getConfig(data) {
    return this.promiseRequest('/sales/merchant/shop/dict/query', data, false, true)
  }
  /**
*  获取svip订单价格及优惠价格
*/
  svipPriceQuery(data) {
    return this.promiseRequest('/wechat/order/svip/price/query', data)
  }
  /**
  * 小程序svip订单创建
  */
  svipCreateOrder(data) {
    return this.promiseRequest('/wechat/order/svip/create', data)
  }
  /**
 * 订单详情查询
 */
  orderQueryDetail(data) {
    return this.promiseRequest('/wechat/order/query/detail', data)
  }
  /**
   * 币券套餐创建
   */
  orderUnionCreate(data) {
    return this.promiseRequest('/wechat/order/union/create', data)
  }
  /**
   * 币券套餐查询
   */
  orderUnionQuery(data) {
    return this.promiseRequest('/wechat/order/price/union/query', data)
  }
  /**
   * 未登录币券套餐查询
   */
  orderUnloginUnionQuery(data) {
    return this.promiseRequest('/wechat/order/unlogin/price/union/query', data)
  }
  /**
   * 币券套餐可用优惠券查询
   */
  orderUnionCouponQuery(data) {
    return this.promiseRequest('/wechat/order/query/available/list', data)
  }
  /**
  *  移动收银台扫码下单试算
  */
  mobilePriceQuery(data) {
    return this.promiseRequest('/wechat/order/mobile/price/query', data)
  }
  /**
   * 移动收银台下单
   */
  mobileCreateOrder(data) {
    return this.promiseRequest('/wechat/order/mobile/create', data)
  }
  /**
 * 查询移动收银台订单可用优惠券列表
 */
  getMobileCouponList(data) {
    return this.promiseRequest('/wechat/order/mobile/coupon/list', data)
  }
  /**
   * 获取用户常用门店信息
   */
  getUserSelectShop(data) {
    return this.promiseRequest('/wechat/shop/query/user/often', data, false, true)
  }
  /**
   * 设置用户常用门店
   */
  setUserSelectShop(data) {
    return this.promiseRequest('/wechat/shop/set/user/often', data, false, true)
  }
  /**
   * 查询门店商品上架情况
   */
  queryProductShelves(data) {
    return this.promiseRequest('/wechat/shop/query/product/shelves', data, false, true)
  }
  /**
   * 获取门店信息
   */
  queryShopInfo(data) {
    return this.promiseRequest('/wechat/shop/query/info', data)
  }
  /**
   * 获取首页布局模块
   */
  queryHomeModule(data) {
    return this.promiseRequest('/wechat/cms/page/layout', data, false, true)
  }
  /**
   * 获取底部菜单
   */
  queryMenu(data) {
    return this.promiseRequest('/wechat/cms/page/module', data, false, true)
  }
}

module.exports = {
  CurrencyShopModel
}
